package com.youlu.campus.entity.commission;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author : [dengbo]
 * @className : DistributorChannel
 * @description : [分销渠道]
 * @createTime : [2023/3/4 14:14]
 */
@Setter
@Getter
@Document(collection = "distributor_channel")
public class DistributorChannel extends EntityBase{
    /**
     * 渠道名称
     */
    private String channelName;
    /**
     *  用户姓名
     */
    private String userName;
    /**
     * openId
     */
    private String openId;
    /**
     * 分佣比列
     */
    private Integer distributorRatio;
    /**
     * 总累计结算金额 单位分
     */
    private Long totalSettlementMoney;
    /**
     * 账户余额 单位分
     */
    private Long accountBalance;

    /**
     *  后台账户id
     */
    @Indexed
    private String accountId;

    private String appId;

    private String merchantId;
    /**
     * 公司名称
     */
    private String companyName;
    /**
     * 银行卡
     */
    private String bankCard;
    /**
     * 开户行
     */
    private String accountsBank;

    @Transient
    private String accountName;

    @Transient
    private String accountPhone;

}
